package main

import "fmt"

func deferAndReturn() int {
	defer func() {
		fmt.Println("defer func called")
	}()
	return returnFunc()
}

func returnFunc() int {
	fmt.Println("return func called")
	return 0
}
func main() {
	deferAndReturn()
}

//return func called
//defer func called
